package com.lin.fengxiu.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

/**
 * @ClassName Banner
 * @Description TODO
 * @Author wushaopei
 * @Date 2021/3/12 17:30
 * @Version 1.0
 */
@Entity
@Setter
@Getter
public class Banner extends BaseEntity {
    @Id
    private Long id;
    private String name;
    private String description;
//    private Date createTime;
//    private Date updateTime;
//    private Date deleteTime;
    private String title;
    private String img;

    @OneToMany(fetch = FetchType.LAZY)
    @JoinColumn(name = "bannerId")
    private List<BannerItem> items;
}
